<h1>Listing events</h1>

<table>
  <tr>
    <th>Organization</th>
    <th>Title</th>
    <th>Location</th>
    <th>Address</th>
    <th>Cost</th>
    <th>Rsvp instructions</th>
    <th>Rsvp url</th>
    <th>Start time</th>
    <th>End time</th>
    <th>Description</th>
    <th>Contact</th>
  </tr>
  
<% for event in @events %>
  <tr>
    <td><%=h event.organization_id %></td>
    <td><%=h event.title %></td>
    <td><%=h event.location %></td>
    <td><%=h event.address %></td>
    <td><%=h event.cost %></td>
    <td><%=h event.rsvp_instructions %></td>
    <td><%=h event.rsvp_url %></td>
    <td><%=h event.start_time %></td>
    <td><%=h event.end_time %></td>
    <td><%=h event.description %></td>
    <td><%=h event.contact %></td>
    <td><%= link_to 'Show', event_path(event) %></td>
    <td><%= link_to 'Edit', edit_event_path(event) %></td>
    <td><%= link_to 'Destroy', event_path(event), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New event', new_event_path %>